package com.haiyangwang1.cainiao;

import java.time.Instant;
import java.time.LocalDate;
import java.util.Date;

public class Customer {
    private String getExpressNum;//取货码
    private String consignee;//收货人
    private String getConsigneePhone;//收货人电话
    private LocalDate intoTime;//入库时间
    private String outTime;//取货时间
    private String takeGoodsPeople;//取货人

    public Customer() {
    }

    public Customer(String getExpressNum, String consignee, String getConsigneePhone, LocalDate intoTime, String outTime, String takeGoodsPeople) {
        this.getExpressNum = getExpressNum;
        this.consignee = consignee;
        this.getConsigneePhone = getConsigneePhone;
        this.intoTime = intoTime;
        this.outTime = outTime;
        this.takeGoodsPeople = takeGoodsPeople;
    }

    public String getGetExpressNum() {
        return getExpressNum;
    }

    public void setGetExpressNum(String getExpressNum) {
        this.getExpressNum = getExpressNum;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public String getGetConsigneePhone() {
        return getConsigneePhone;
    }

    public void setGetConsigneePhone(String getConsigneePhone) {
        this.getConsigneePhone = getConsigneePhone;
    }

    public LocalDate getIntoTime() {
        return intoTime;
    }

    public void setIntoTime(LocalDate intoTime) {

        this.intoTime = LocalDate.now();
    }

    public String getOutTime() {
        return outTime;
    }

    public void setOutTime(String outTime) {
        this.outTime = "未取货";
    }

    public String getTakeGoodsPeople() {
        return takeGoodsPeople;
    }

    public void setTakeGoodsPeople(String takeGoodsPeople) {
        this.takeGoodsPeople = takeGoodsPeople;
    }

    @Override
    public String toString() {
        return "Customer{" +
                "getExpressNum='" + getExpressNum + '\'' +
                ", consignee='" + consignee + '\'' +
                ", getConsigneePhone='" + getConsigneePhone + '\'' +
                ", intoTime=" + intoTime +
                ", outTime='" + outTime + '\'' +
                ", takeGoodsPeople='" + takeGoodsPeople + '\'' +
                '}';
    }
}
